/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bff.bjj.lib.actions;

import com.bff.bjj.utils.BrowserLauncher;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;

/**
 *
 * @author music
 */
public abstract class LinkAction extends AbstractAction {

    public LinkAction(String name) {
        super(name);
    }

    public abstract String getUrl();

    public void actionPerformed(ActionEvent evt) {
        BrowserLauncher.openURL(java.util.ResourceBundle.getBundle("messages").getString(getUrl()));
    }
}
